<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/common.css">
    <script defer src="./js/common.js"></script>

</head>

<body>
    <script>
        // 页面的所有资源都下载并执行
        // window > document
        // window.onload = function () {
        //     console.log('123')
        // }

        window.addEventListener('load', () => {
            console.log('123')
        })
        window.addEventListener(
            "DOMContentLoaded",
            () => {
                console.log('456')
            }
        )
    </script>
</body>

</html>